package com.example.soa2.service;

import com.example.soa2.common.CommonResponse;
import com.example.soa2.entity.Material;

import java.util.List;

public interface MaterialService
{
    CommonResponse<Material> getMaterial(int id);
    CommonResponse<Material> getMaterial(String name);
    CommonResponse<List<Material>> getMaterials();
    CommonResponse<Material> addMaterial(Material material);

    CommonResponse<Material> deleteMaterial(int id);

    CommonResponse<String> updateMaterial(int id, Material material);
}
